import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { HashLocationStrategy, LocationStrategy, registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { MonkFormDesignModule } from './core/monk-form-design/monk-form-design.module';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { PreviewDialog } from './core/monk-form-design/view/preview-dialog/preview-dialog.dialog';
import { PreviewFormDesignModule } from './core/monk-form-design/preview-form-design/preview-form-design.module';
import { NZ_ICONS } from 'ng-zorro-antd/icon';
import { IconDefinition } from '@ant-design/icons-angular';
import { DeleteOutline } from '@ant-design/icons-angular/icons';
registerLocaleData(zh);

const icons: IconDefinition[] = [ DeleteOutline ];

@NgModule({
  declarations: [
    AppComponent,PreviewDialog
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    DragDropModule,
    MonkFormDesignModule,PreviewFormDesignModule,
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN },
    { provide: NZ_ICONS, useValue: icons },
    { provide: LocationStrategy, useClass: HashLocationStrategy },
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
